package bcc.java8.example01;

public class Java8Tester3 {
    public static void main(String[] args) {
        int num = 1;
        Converter<Integer, String> s = (param) -> {
            System.out.println(param + num);
        };
        // 输出结果为 3
        s.convert(2);
    }

    @FunctionalInterface
    public interface Converter<T1, T2> {
        void convert(int i);
    }
}
